package com.songjg.demo.dao.second;

import com.songjg.demo.entity.second.UserPo;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @description:
 * @author: song.jingen
 * @create: 2019/7/19 16:50
 **/
@Mapper
public interface UserMapper {

    @Select("select * from tb_user")
    @Results({
            @Result(property = "userName", column = "name"),
            @Result(property = "createTime", column = "time")
    })
    List<UserPo> userList();
}
